{% load static %}
<!DOCTYPE html>
<html>
<head>
    <meta charset = "UTF-8" />
    <title>人员列表</title>
    <meta name = "renderer" content = "webkit" />
    <meta http-equiv = "X-UA-Compatible" content = "IE=edge,chrome=1" />
    <meta name = "viewport"
          content = "width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0" />
    <link rel = "stylesheet" href = "{% static 'background/css/font.css' %}" />
    <link rel = "stylesheet" href = "{% static 'background/css/weadmin.css' %}" />
</head>

<body>
<div class = "weadmin-nav">
			<span class = "layui-breadcrumb">
				<a href = "javascript:;">首页</a> <a href = "javascript:;">人员管理</a>
				<a href = "javascript:;"> <cite>人员列表</cite></a>
			</span>
    <a class = "layui-btn layui-btn-sm" style = "margin-top:3px;float:right"
       href = "javascript:location.replace(location.href);"
       title = "刷新">
        <i class = "layui-icon layui-icon-refresh"></i>
        <!-- <i class="layui-icon" style="line-height:30px">&#x1002;</i> -->
    </a>
</div>

<div class = "weadmin-body">
    <div class = "layui-row">
        <form class = "layui-form layui-col-md12 we-search" action="">
            用户搜索：
            <div class = "layui-inline">
                <input type = "text" name = "username" placeholder = "请输入用户名" autocomplete = "off" class = "layui-input" />
            </div>
            <button class="layui-btn" lay-submit lay-filter="search">
                <i class = "layui-icon layui-icon-search"></i>
            </button>
        </form>
    </div>
    <div>
{#        <button class = "layui-btn layui-btn-danger" onclick = "delAll()">#}
{#            <i class = "layui-icon layui-icon-delete"></i>批量删除#}
{#        </button>#}
        <button class = "layui-btn" onclick = "WeAdminShow('添加用户','/back/user/add',600,400)">
            <i class = "layui-icon layui-icon-add-circle-fine"></i>添加
        </button>
    </div>
    <table class = "layui-hide" id = "memberList"></table>
    <script type = "text/html" id = "operateTpl">
{#        console.log({% verbatim %}{{ d.id }}{% endverbatim %})#}
        <a title = "编辑" onclick = "WeAdminEdit('编辑','/back/user/edit',{% verbatim %}{{ d.id }}{% endverbatim %}, 600, 400)">
            <i class = "layui-icon layui-icon-edit"></i>
        </a>
        <a onclick = "WeAdminEdit('修改密码','/back/user/password',{% verbatim %}{{ d.id }}{% endverbatim %}, 600, 400)" title = "修改密码">
            <i class = "layui-icon layui-icon-util"></i>
        </a>
        <a title = "删除" onclick = "member_del(this,{% verbatim %}{{ d.id }}{% endverbatim %})">
            <i class = "layui-icon layui-icon-delete"></i>
        </a>
    </script>
{#    {% endverbatim %}#}
    {% csrf_token %}
</div>
{#<script src = "{% static 'background/js/jquery-3.3.1.min.js' %}" type = "text/javascript"></script>#}
<script src = "{% static 'background/lib/layui/layui.js' %}" charset = "utf-8"></script>
<script src = "{% static 'background/js/user/list.js' %}" type = "text/javascript" charset = "utf-8"></script>
</body>
</html>
